package matossian.j2se6.examples.properties;

import java.util.Enumeration;

public class Properties {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		java.util.Properties prop = System.getProperties();
//		for(Map.Entry<Object, Object> e : prop.entrySet()) {
//			System.out.println("<" + e.getKey() + ", " + e.getValue() + ">");
//		}
		Enumeration<String> e = (Enumeration<String>) prop.propertyNames();
		while(e.hasMoreElements()) {
			String key = e.nextElement();
			System.out.println("<" + key + ", " + prop.getProperty(key) + ">");
		}
		
		System.out.println(Long.getLong("java.class.version"));
		System.out.println(System.getProperty("java.class.version"));
	}

}
